<?php
include("include/config.inc.php");

  if(isset($_REQUEST['waiter']))
  {
    $waiterVar = $_REQUEST['waiter'] ;
  }
  else
  {
  	$waiterVar = 0 ;
  }
  
  if(isset($_REQUEST['table']))
  {
    $tableVar = $_REQUEST['table'] ;
  }
  else
  {
  	$tableVar = 0 ;
  }
  if(isset($_REQUEST['tablePart']))
  {
    $tablePartVar = $_REQUEST['tablePart'] ;
  }
  else
  {
  	$tablePartVar = 'A' ;
  }
  
 if(isset($_REQUEST['msg']))
 {
   echo "<script>alert('".$_REQUEST['msg']."');</script>";	
 }
 
 include("./bottom.php");
 $smarty->assign('tableVar',$tableVar);
 $smarty->assign('tablePartVar',$tablePartVar);
 $smarty->assign('waiterVar',$waiterVar);
 $smarty->display('index.tpl');

?>